﻿namespace Coldairarrow.Util.WechatPay
{
    /// <summary>
    /// 订单支付模型
    /// </summary>
    public class WXJSAPIUnifiedOrdersDTO
    {
        /// <summary>
        /// 商品描述
        /// </summary>
        public string body { set; get; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public string OrderId { set; get; }

        /// <summary>
        /// 订单金额（单位：分）
        /// </summary>
        public int total_fee { set; get; } = 1;

        /// <summary>
        /// 网站地址
        /// </summary>
        public string webHerf { set; get; }

        /// <summary>
        /// 付款微信openId(JSAPI支付必传)
        /// </summary>
        public string openid { set; get; }

    }

    /// <summary>
    /// 订单支付模型
    /// </summary>
    public class WXNativeUnifiedOrdersDTO
    {
        /// <summary>
        /// 商品描述
        /// </summary>
        public string body { set; get; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public string OrderId { set; get; }

        /// <summary>
        /// 订单金额（单位：分）
        /// </summary>
        public int total_fee { set; get; } = 1;

        /// <summary>
        /// 网站地址
        /// </summary>
        public string webHerf { set; get; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public string product_id { set; get; }

    }

    /// <summary>
    /// 订单支付模型
    /// </summary>
    public class WXMWebUnifiedOrdersDTO
    {
        /// <summary>
        /// 商品描述
        /// </summary>
        public string body { set; get; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public string OrderId { set; get; }

        /// <summary>
        /// 订单金额（单位：分）
        /// </summary>
        public int total_fee { set; get; } = 1;

        /// <summary>
        /// 网站地址
        /// </summary>
        public string webHerf { set; get; }


        /// <summary>
        /// 前台地址
        /// </summary>
        public string wapUrl { set; get; }

        /// <summary>
        /// 网站名称
        /// </summary>
        public string wapName { set; get; }
    }

    /// <summary>
    /// 微信提现模型
    /// </summary>
    public class WXTransferReabteDTO
    {
        /// <summary>
        /// 支付人openId
        /// </summary>
        public string openid { get; set; }

        /// <summary>
        /// 提现金额
        /// </summary>
        public int amount { get; set; } = 1;


        /// <summary>
        /// 提现备注
        /// </summary>
        public string note { get; set; }
    }
}
